package com.gcsoftware.gateway.filters.http.response;

import io.netty.handler.codec.http.HttpResponseStatus;

/**
 * Created by qs on 2018/4/11.
 */
public class GwHttpRspStatus extends HttpResponseStatus
{
    //token未填写
    public static final HttpResponseStatus TOKEN_REQUIRED = new HttpResponseStatus(40101, "TOKEN REQUIRED");

    //token未授权，没有绑定角色id或已过期
    public static final HttpResponseStatus UNAUTHORIZED_TOKEN = new HttpResponseStatus(40102, "UNAUTHORIZED TOKEN.");


    //超出客户端访问许可
    public static final HttpResponseStatus SERVICE_URL_FORBIDDEN = new HttpResponseStatus(40315, "SERVICE URL FORBIDDEN.");

    //app ip必须
    public static final HttpResponseStatus APP_IP_REQUIRED = new HttpResponseStatus(40360, "APP IP REQUIRED.");

    //ip被拒绝
    public static final HttpResponseStatus IP_REJECTED = new HttpResponseStatus(40361, "IP REJECTED.");



    //接口方法不允许访问
    public static final HttpResponseStatus UNAUTHORIZED_METHOD = new HttpResponseStatus(41601 , "UNAUTHORIZED METHOD");


    public GwHttpRspStatus(int code, String reasonPhrase) {
        super(code, reasonPhrase);

    }
}
